
#ifndef __KidMath__GhostResult__
#define __KidMath__GhostResult__

#include "../GhostObject.h"
#include "../../../GameConfig.h"
#include "../../../Scenes/Play/PlayManager.h"
USING_NS_CC;
using namespace ui;
class GhostResult : public GhostObject
{
private:
    Sprite* m_clound;
	Sprite* m_sprfail;
	bool m_isWin;

    void runCloundAction();
    void runFailAction();
    void runGhostAction();
	
	void setFaceHappy();
	void setFaceIdle();
public:
    GhostResult();
    void initalize(EGhostColor color, EGhostFaceState ghostFaceState,EGhostHandState ghostHandState,std::string equation, Vec2 position, float scale, bool win);
    // static void addToLayer(Node* node, clsGhostPlay* ghost);
	EGhostStatus m_status;

    void runDisplayAction();
};


#endif